package nettyRPCTest.client;

import nettyRPCTest.rpcApi.RpcService;

public class RpcClient {
    public static void main( String[] args ){
        RpcService service = RpcProxy.create(RpcService.class);
        String hello = service.hello("rpc");
        System.out.println(hello);
        System.out.println(service.add(5, 3));
        System.out.println(service.sub(5, 3));
    }
}
